<?php
namespace app\behavior;


class CORS
{
    public function handle( )
{
    header('Access-Control-Allow-Origin: *');
    header("Access-Control-Allow-Headers: token,Origin, X-Requested-With, X_Requested_With,Content-Type, Accept");
    header('Access-Control-Allow-Methods: POST,GET,PUT,DELETE');
    if(request()->isOptions()){
        exit();
    }
}
}